package com.xcity.pomelo.response;

import java.util.List;

import com.xcity.db.entity.Employee;
import com.xcity.game.employee.config.impl.EmployeeRebornConfigure;
import com.xcity.game.item.ItemInfo;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class EmployeeRebornInfoResponse extends Response {
	
	public long id; // 重生员工id
	public int stone; // 重生消耗钻石
	public List<ItemInfo> gains; // 重生可获得物品
	
	public EmployeeRebornInfoResponse(int serial, Employee employee, EmployeeRebornConfigure configure) {
		super(serial);
		this.id = employee.getId();
		this.stone = configure.getRebornStone(employee);
		this.gains = configure.getRebornReturns(employee);
	}

}
